package com.zdd.ehe.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDate;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 
 * </p>
 *
 * @author ZhuiZhu
 * @since 2023-03-24
 */
@TableName("t_province_produce_data")
@ApiModel(value = "ProvinceProduceData对象", description = "")
public class ProvinceProduceData implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("各省份生产量数据编号")
    @TableId(value = "p_produce_id", type = IdType.AUTO)
    private Integer pProduceId;

    @ApiModelProperty("类型")
    private String type;

    @ApiModelProperty("省份")
    private String province;

    @TableField(exist = false)
    @ApiModelProperty("时间")
    private LocalDate year;

    @ApiModelProperty("播种面积（千公顷）")
    private Double areaSeed;

    @ApiModelProperty("产量（万吨）")
    private Double yieldTotal;

    @ApiModelProperty("平均单产（千克/亩）")
    private Double yieldUnit;

    @ApiModelProperty("作物编码")
    private String varietyCode;

    @ApiModelProperty("省份编码")
    private String provinceCode;

    @ApiModelProperty("数据状态")
    private String status;

    public Integer getpProduceId() {
        return pProduceId;
    }

    public void setpProduceId(Integer pProduceId) {
        this.pProduceId = pProduceId;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public LocalDate getYear() {
        return year;
    }

    public void setYear(LocalDate year) {
        this.year = year;
    }

    public Double getAreaSeed() {
        return areaSeed;
    }

    public void setAreaSeed(Double areaSeed) {
        this.areaSeed = areaSeed;
    }

    public Double getYieldTotal() {
        return yieldTotal;
    }

    public void setYieldTotal(Double yieldTotal) {
        this.yieldTotal = yieldTotal;
    }

    public Double getYieldUnit() {
        return yieldUnit;
    }

    public void setYieldUnit(Double yieldUnit) {
        this.yieldUnit = yieldUnit;
    }

    public String getVarietyCode() {
        return varietyCode;
    }

    public void setVarietyCode(String varietyCode) {
        this.varietyCode = varietyCode;
    }

    public String getProvinceCode() {
        return provinceCode;
    }

    public void setProvinceCode(String provinceCode) {
        this.provinceCode = provinceCode;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "ProvinceProduceData{" +
                "pProduceId=" + pProduceId +
                ", type='" + type + '\'' +
                ", province='" + province + '\'' +
                ", year=" + year +
                ", areaSeed=" + areaSeed +
                ", yieldTotal=" + yieldTotal +
                ", yieldUnit=" + yieldUnit +
                ", varietyCode='" + varietyCode + '\'' +
                ", provinceCode='" + provinceCode + '\'' +
                ", status='" + status + '\'' +
                '}';
    }
}
